#include <stdio.h>
//#include "test.h"
#define N 6

int i, j, k, l;
#if 0
char reverse[100];
char upper[100];
char lower[100];
char numer[100];
#endif
void main(void)
{

 #if 0
   printf("original = %s\n\r", test);
   for( i=0; test[i] != 0; i++ );
   for( j=0; i > 0; i--, j++ )
   {
      reverse[j] = test[i-1];
   }
   reverse[j] = 0;
   printf("reverse  = %s\n\r", reverse);

   for( i=0, j=0, k=0, l=0; test[i] != 0; i++ )
   {
      if(( reverse[i] >= 'A' ) && ( reverse[i] <= 'Z' ))
      {
         upper[j] = reverse[i];
         j++;
      }
      else if(( reverse[i] >= 'a' ) && ( reverse[i] <= 'z' ))
      {
         lower[k] = reverse[i];
         k++;
      }
      else if(( reverse[i] >= '0' ) && ( reverse[i] <= '9' ))
      {
         numer[l] = reverse[i];
         l++;
      }
   }
   upper[j] = 0;
   lower[k] = 0;
   numer[l] = 0;
   printf("upper = %s\n\r", upper);
   printf("lower = %s\n\r", lower);
   printf("numer = %s\n\r", numer);
#endif
   j = 0;
   for( i=1;i<N;i++ )
   {
      j = j + i;
   }
   printf("%d", j);
}